<template>
  <p>全部商品 新增商品跳转页</p>
  <div class="common-layout">
    <el-container>
      <!-- <el-aside width="200px">Aside</el-aside> -->
      <el-main>
        <p>
          <label for="">编号</label>
          <input type="text" />
        </p>
        <p>
          <label for="">名称</label>

          <input type="text" />
        </p>
        <p>
          <label for="">供应商</label>
          <input type="text" />
        </p>
        <p>
          <label for="">销售价格</label>

          <input type="text" />
        </p>
        <p>
          <label for="">运费</label>
          <input type="text" />
        </p>
        <p>
          <label for="">活动类型</label>
          <input type="text" />
        </p>
        <p>
          <label for="">商品尺寸</label>
          <input type="text" />
        </p>
        <p>
          <label for="">商品颜色</label>
          <input type="text" />
        </p>
        <p>
          <label for="">商品数量</label>
          <input type="text" />
        </p>
        <p>
          <label for="">商品入库时间</label>
          <input type="text" />
        </p>

        <el-row class="mb-4">
          <el-button class="BUTTON" type="primary">确定</el-button>
          <el-button class="BUTTON" type="success" @click="handelClick"
            >取消</el-button
          >
        </el-row>
      </el-main>
    </el-container>
  </div>
</template>
<script lang="ts">
import { useRouter } from "vue-router";
export default {
  setup() {
    const router = useRouter();
    const handelClick = () => {
      router.go(-1);
    };
    return {
      handelClick,
    };
  },
};
</script>
<style lang="less" scope>
.mb-4 {
  display: flex;
  justify-content: center;
  text-align: center;
  .BUTTON {
    width: 70px;
    height: 30px;
    background: #5f4e72;
    border-radius: 4px;
    margin-top: 10px;
  }
}
.common-layout {
  p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 7px 0;
    label {
      height: 16px;
      display: inline-block;
      width: 110px;
      text-align: right;
      font-size: 15px;
      color: #666666;
      line-height: 18px;
    }
    input {
      text-indent: 10px;
      width: 400px;
      height: 34px;
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid #fafafa;
      margin-left: 30px;
    }
  }
}
</style>
